$(document).ready(function() {
    
    var prevResult = "";
    
    setInterval(function() {
      
        
        
        $.ajax({
            type: "POST",
            url: "http://localhost/Workspace/Sidera_Online/index.php/game_screen/render",
            async: true,
            success: function(result) {
               
                
                if (prevResult !== result) {
                    $("#game_screen").html(result);
                    prevResult = result;
                }
                
                
            }
        });


    }, 500);
});